/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/02/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/  

package com.application.transitiondownlog.struts.form;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.transitiondownlog.entity.Transitiondownlog;
import java.util.Date;
 /**
 * 
 * Description: TransitiondownlogForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 03/02/2012 .
 * 
 */
public class  TransitiondownlogForm extends ActionForm
{

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;
	
	public TransitiondownlogForm(){
  
	}

		      
	private String id;
        
        	      
	private String placeId;
        
        	      
	private String downPerson;
        
        	      
	private Date downTime;
        
        	      
	private String fileName;
        
        	      
	private String fileType;
        
        	      
	private String remark;
        
        	      
	private String projectNo;
        
        	      
	private String operateid;
        
        	      
	private Date createDate;
        
        
        private String ids;

	        	private String startDownTime;
	private String endDownTime;
                                        
	                        	private String downTimeStr;
                                                                        
	
         	         	 	/**
	 * @return Returns the DownTime.
	 */
	public String getDownTimeStr(){
	        String re = "";
		if(this.downTime == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.downTime);
		}
		catch(Exception e) {
			e.printStackTrace();
		}
		return re;
	}
	

	/**
	 * @param ${field.propertyName} Set the ${field.propertyName}.
	 */	
	public void setDownTimeStr(String downTimeStr){
		this.downTimeStr = downTimeStr;
		if(this.downTimeStr != null && !"".equals(this.downTimeStr)) {
			try {
				this.downTime = StringUtil.stringToDate(this.downTimeStr);
			}
			catch(Exception e) {
				e.printStackTrace();
			}
		}

	}
                	         	         	         

        	/**
	 * @return Returns the Id
	 */
	public String getId(){
		return this.id;
	}
	

	/**
	 * @param id Set the id.
	 */	
	public void setId(String id){
		this.id = id;
	}
	
        	/**
	 * @return Returns the PlaceId
	 */
	public String getPlaceId(){
		return this.placeId;
	}
	

	/**
	 * @param placeId Set the placeId.
	 */	
	public void setPlaceId(String placeId){
		this.placeId = placeId;
	}
	
        	/**
	 * @return Returns the DownPerson
	 */
	public String getDownPerson(){
		return this.downPerson;
	}
	

	/**
	 * @param downPerson Set the downPerson.
	 */	
	public void setDownPerson(String downPerson){
		this.downPerson = downPerson;
	}
	
        	/**
	 * @return Returns the DownTime
	 */
	public Date getDownTime(){
		return this.downTime;
	}
	

	/**
	 * @param downTime Set the downTime.
	 */	
	public void setDownTime(Date downTime){
		this.downTime = downTime;
	}
	
        	/**
	 * @return Returns the FileName
	 */
	public String getFileName(){
		return this.fileName;
	}
	

	/**
	 * @param fileName Set the fileName.
	 */	
	public void setFileName(String fileName){
		this.fileName = fileName;
	}
	
        	/**
	 * @return Returns the FileType
	 */
	public String getFileType(){
		return this.fileType;
	}
	

	/**
	 * @param fileType Set the fileType.
	 */	
	public void setFileType(String fileType){
		this.fileType = fileType;
	}
	
        	/**
	 * @return Returns the Remark
	 */
	public String getRemark(){
		return this.remark;
	}
	

	/**
	 * @param remark Set the remark.
	 */	
	public void setRemark(String remark){
		this.remark = remark;
	}
	
        	/**
	 * @return Returns the ProjectNo
	 */
	public String getProjectNo(){
		return this.projectNo;
	}
	

	/**
	 * @param projectNo Set the projectNo.
	 */	
	public void setProjectNo(String projectNo){
		this.projectNo = projectNo;
	}
	
        	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid(){
		return this.operateid;
	}
	

	/**
	 * @param operateid Set the operateid.
	 */	
	public void setOperateid(String operateid){
		this.operateid = operateid;
	}
	
        	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate(){
		return this.createDate;
	}
	

	/**
	 * @param createDate Set the createDate.
	 */	
	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}
	
                
        
	        	public String getStartDownTime(){
		return this.startDownTime;
	}
	

	/**
	 * @param $field.propertyName Set the ${field.propertyName}.
	 */	
	public void setStartDownTime(String startDownTime){
		this.startDownTime = startDownTime;
	}

	public String getEndDownTime(){
		return this.endDownTime;
	}
	

	/**
	 * @param $field.propertyName Set the ${field.propertyName}.
	 */	
	public void setEndDownTime(String endDownTime){
		this.endDownTime = endDownTime;
	}
                                

	private List<Transitiondownlog> transitiondownlogList;

       /**
	 * @return the transitiondownlogformList
	 */
	public List<Transitiondownlog> getTransitiondownlogList() {
		return transitiondownlogList;
	}

	/**
	 * @param transitiondownlogList the transitiondownlogformList to set
	 */
	public void setTransitiondownlogList(List<Transitiondownlog> transitiondownlogList) {
		this.transitiondownlogList = transitiondownlogList;
	}
        
	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

        public String toString(){
		return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
}
